<script type="text/javascript" src="${base}/scripts/jsgl/wljsd_content.js"></script>

<form id="form_wljsd"  class="easyui-tabs" fit="true" style="height: 100%" method="post">
    <input id="wljsd_id" name="wljsd.id" type="hidden" value="${(wljsd.id)!''}"/>
    <input name="wljsd.type" type="hidden" value="${(wljsd.type)!''}"/>

        <div title="结算单信息">
            <table style="width:100%;" class="tb tab-t">
                <col width="10%"/>
                <col width="35%"/>
                <col width="10%"/>
                <col width="35%"/>
                <tr>
                    <th>结算单号：</th>
                    <td>
                        <input name="wljsd.jsdh" type="hidden" class="input-text readonly"
                               readonly="readonly" value="${(wljsd.jsdh)!}"/>
                        <span>${(wljsd.jsdh)!}</span>
                    </td>
                </tr>
                <tr>
                    <th>带总部结算：</th>
                    <td>
                        <input type="checkbox" name="wljsd.zbjs" id="wljsd_zbjs" value="true"
                               <#if wljsd?? && wljsd.cggs?? && wljsd.gs?? &&
                               wljsd.cggs.id!=wljsd.gs.id>checked</#if>/>
                    </td>
                    <th>采购公司：</th>
                    <td>
                        <input id="wljsd_cggs" name="wljsd.cggs.id" style="width:272px;" type="text"
                               value="${(wljsd.cggs.id)!(gsId)}"
                               class="easyui-combotree input-text"/>
                    </td>
                </tr>
                <tr>
                    <th style="color:#f45212;">申报公司：</th>
                    <td><input id="wljsd_gs" name="wljsd.gs.id"  type="text" required="true"
                               style="width:290px;" value="${(wljsd.gs.id)!(gsId)}" />
                    </td>
                    <th>申&nbsp;请&nbsp;&nbsp;人：</th>
                    <td>
                        <input id="wljsd_spr" name="wljsd.sqr.id" type="text" style="width:270px;"
                               value="${(wljsd.sqr.id)!(sprId)}"
                               class="easyui-combobox input-text" data-options="valueField:'id',textField:'xm'"/>
                    </td>
                </tr>
                <tr>
                    <th style="color:#f45212;">物&nbsp;流&nbsp;&nbsp;商：</th>
                    <td><input id="wljsd_glqy" name="wljsd.glqy.id" type="text" style="width:290px;"
                               required="true" class="easyui-combobox input-text" value="${(wljsd.glqy.id)!''}"
                               data-options="url:'${base}/organ/wls/wlsInuseList',valueField:'id',textField:'qc',panelHeight:'200'">
                    </td>
                    <th>纳&nbsp;税&nbsp;&nbsp;号：</th>
                    <td><input id="wljsd_glqy_qyfr_nsh" name="wljsd.glqy.qyfr.nsh" style="width:270px;"
                               readonly="readonly" class="input-text" type="text"
                               value="${(wljsd.glqy.qyfr.nsh)!''}"/></td>
                </tr>
                <tr>
                    <th>发票种类：</th>
                    <td>
                        <label><input name="wljsd.fpzl" type="radio" value="4" checked="checked"
                                      style="vertical-align: middle;"/>&nbsp;物流发票</label>
                        <label><input name="wljsd.fpzl" type="radio" value="0"
                                      <#if (wljsd.fpzl)?? && wljsd.fpzl==0>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;增票</label>
                        <label><input name="wljsd.fpzl" type="radio" value="1"
                                      <#if (wljsd.fpzl)?? && wljsd.fpzl==1>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;普票</label>
                        <label><input name="wljsd.fpzl" type="radio" value="2"
                                      <#if (wljsd.fpzl)?? && wljsd.fpzl==2>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;其他</label>
                        <label><input name="wljsd.fpzl" type="radio" value="3"
                                      <#if (wljsd.fpzl)?? && wljsd.fpzl==3>checked</#if>
                                      style="vertical-align: middle;"/>&nbsp;另开票
                        </label>
                    </td>
                    <th>发票张数：</th>
                    <td>
                        <input name="wljsd.fpzs" class="input-text" style="width:270px;" type="text"
                               value="${(wljsd.fpzs)!''}"/>
                    </td>
                </tr>
                <tr>
                    <th style="color:#f45212;">发票号码：</th>
                    <td>
                        <input id="wljsd_hm" name="wljsd.hm" class="input-text" style="width:290px;" type="text"
                               value="${(wljsd.hm)!''}"  required="true"/>
                    </td>
                    <th>发票总额：</th>
                    <td>
                        <input id="wljsd_fpze" name="wljsd.fpze" readonly="readonly" class="input-text"
                               style="width:270px;background-color:#F8F8FF;" type="number"
                               value="${(wljsd.fpze)!''}"/>
                    </td>
                </tr>
                <tr>
                    <th>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</th>
                    <td colspan="3">
                        <textarea style="width:777px;height: 101px" rows="2" class="textarea"
                                  name="wljsd.bz">${(wljsd.bz)!}</textarea>
                    </td>
                    <#--<input id="wljsd_me" name="wljsd.me" class="input-text-border-zero"-->
                                                                                        <#--type="hidden" value="${(wljsd.me?string("0.00"))!}"/>-->
                    <#--<input id="wljsd_je" name="wljsd.je" class="input-text-border-zero"-->
                           <#--type="hidden" value="${(wljsd.je?string("0.00"))!}"/>-->
                    <#--<input id="wljsd_se" name="wljsd.se" class="input-text-border-zero"-->
                           <#--type="hidden" value="${(wljsd.se?string("0.00"))!}"/>-->
                    <#--<input id="wljsd_ce" name="wljsd.ce" class="input-text-border-zero"-->
                           <#--type="hidden" value="${(wljsd.ce?string("0.00"))!}"/>-->
                </tr>

            </table>
        </div>
        <div title="结算单明细">
            <table style="width:100%;" class="tb tab-t">
                <tr>
                    <td colspan="8">
                        <div id="wld_tool" style="height:auto;">
                            <ul class="niu">
                                <li>
                                    <a href="javascript:void(0)" id="btn_wld_search" plain="true">新增</a>
                                </li>
                            </ul>
                        </div>
                    </td>
                </tr>
                <table id="grid_wld"></table>
                <div style="width: 1000px">
                    <tr>
                        <th>净余额(元)：</th>
                        <td>
                            <input id="wljsd_je" name="wljsd.je" class="input-text-border-zero" readonly="readonly"
                                   style="width:150px;margin-bottom:-5px;background-color:#F8F8FF;" type="text" value="${(wljsd.je)!0}"/>
                        </td>
                        <th>税&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="wljsd_se" name="wljsd.se" class="input-text-border-zero" readonly="readonly"
                                   style="width:150px;margin-bottom:-5px;background-color:#F8F8FF;" type="text" value="${(wljsd.se)!0}"/>
                        </td>
                        <th>面&nbsp;&nbsp;额(元)：</th>
                        <td>
                            <input id="wljsd_me" name="wljsd.me" readonly="readonly" class="input-text-border-zero"
                                   type="text" style="width:150px;margin-bottom:-5px;background-color:#F8F8FF;" value="${(wljsd.me)!0}"/>
                        </td>
                        <th>差额(元)：</th>
                        <td>
                            <input id="wljsd_ce" name="wljsd.ce" class="input-text-border-zero" type="text"
                                   readonly="readonly" style="width:120px;margin-bottom:-5px;background-color:#F8F8FF;" value="${(wljsd.ce)!0}"/>
                        </td>
                    </tr>
                </div>
            </table>
        </div>
        <div title="资金补差单">
                <table id="grid_zjbcd_wljsd"></table>
        </div>
</form>

